package com.flitsneak.designpatterns.behavioralpatterns.command.concretecommand;

import com.flitsneak.designpatterns.behavioralpatterns.command.Demand;
import com.flitsneak.designpatterns.behavioralpatterns.command.LickDogFeiFei;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/7/18 15:25
 * @description
 */
public class BuySnacksDemand implements Demand {

    private LickDogFeiFei lickDogFeiFei;

    public BuySnacksDemand(LickDogFeiFei lickDogFeiFei) {
        this.lickDogFeiFei = lickDogFeiFei;
    }

    @Override
    public void satisfyNeeds() {
        lickDogFeiFei.buySnacks();
    }
}
